package com.wondertek.service.dto.app.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @description: 修改密码
 * @author: qinjianhui
 * @create: 2024-07-17 14:17
 **/
@Data
public class AppAuthUpdatePasswordReq {

    /*
     * 邮箱
     * */
    @NotBlank(message = "email.not.null")
    @Schema(name = "email",description = "邮箱")
    private String email;

    /*
     * 密码
     * */
    @NotBlank(message = "password.not.null")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    @Schema(name = "password",description = "密码")
    private String password;

}

